package com.example.demo.client.vm.cssmqry.resource;

import com.example.demo.enums.UserPermissionTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * @author linxiao
 * @date 2019/12/18 17:28
 */
@ApiModel(description = "用户资源权限-出参")
public class ResPermissionVm implements Serializable {
    private static final long serialVersionUID = -4992257696904837551L;
    @ApiModelProperty(value = "资源类型")
    private String resourceType;
    @ApiModelProperty(value = "自定义：拥有的资源权限类型：0-没权限，1-所有权限，2-拥有部分权限")
    private Integer hasResourceType= UserPermissionTypeEnum.PART_PERMISSION.getValue();
    @ApiModelProperty(value = "资源列表",notes = "拥有权限的时候才有值")
    private List<String> resourceList;

    @Override
    public String toString() {
        return "ResPermissionVm{" +
            "resourceType='" + resourceType + '\'' +
            ", hasResourceType=" + hasResourceType +
            ", resourceList=" + resourceList +
            '}';
    }

    public Integer getHasResourceType() {
        return hasResourceType;
    }

    public void setHasResourceType(Integer hasResourceType) {
        this.hasResourceType = hasResourceType;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public List<String> getResourceList() {
        return resourceList;
    }

    public void setResourceList(List<String> resourceList) {
        this.resourceList = resourceList;
    }
}
